import request from '@/utils/request'

// 查询师傅入驻
export function listEnters(query) {
  return request({
    url: '/system/user/enterList',
    method: 'get',
    params: query
  })
}

// 查询师傅入驻详细
export function getMasterEnterDetail(id) {
  return request({
    url: '/system/user/' + id,
    method: 'get'
  })
}

// 查询用户
export function listUser(data) {
  return request({
    url: '/system/user/ordinaryList',
    method: 'get',
    params: data
  })
}

// 查询用户详情
export function getUserDetail(id) {
  return request({
    url: '/system/user/' + id,
    method: 'get',
  })
}